/**
 *
 */
package game;

import javax.swing.*;

import java.awt.*;

/*
 * Team: Sting Arrays
 * Creators: Devin La Fleur. and Jonathan Satchell.
 * Game: Defend Chernobly
 */
public class Enemy extends JLabel{

	public static enum Type{
		TANK, SOLDIER, GRUNT
	}

	private Type type;

	private ImageIcon img;

	private int Damage;

	private int loot;
	
	private int health, speed;

	public Enemy(Type type)
	{
		this.type = type;
		switch(this.type)
		{
			case TANK:
				img = new ImageIcon("Images/godzilla.png");
				img = new ImageIcon(img.getImage( ).getScaledInstance(71,50, Image.SCALE_SMOOTH));
				loot = 30;
				Damage = -8;
				speed = 8;
				health = 120;
				break;
			case SOLDIER:
				img = new ImageIcon("Images/Mosh Frog.png");
				img = new ImageIcon(img.getImage( ).getScaledInstance(67,50, Image.SCALE_SMOOTH));
				loot = 10;
				Damage = -5;
				speed = 15;
				health = 60;
				break;
			case GRUNT:
				img = new ImageIcon("Images/Freaky Fish.png");
				img = new ImageIcon(img.getImage( ).getScaledInstance(32,50, Image.SCALE_SMOOTH));
				loot = 3;
				Damage = -2;
				speed = 10;
				health = 4;
				break;
		}

	}
	public ImageIcon getImage()
	{
		return img;
	}
	public int getDamage()
	{
		return Damage;
	}
	public int getLoot()
	{
		return loot;
	}
	public int getSpeed()
	{
		return speed;
	}
	public int getHealth()
	{
		return health;
	}
	public void takeDamage(int damage)
	{
		health -= damage;
	}
}
